home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1987-10-14 | 6.8 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: FileName.p
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| ZX81 Sinclair BASIC (image/sinclairBASIC)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| bsdiff patch (other/bsdiffPatch)
| ext
| Unsupported |
1%
| dexvert
| imgdiff patch (other/imgdiffPatch)
| ext
| Unsupported |
1%
| dexvert
| WSUS Patch Storage File (other/wsusPatchStorageFile)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Wed Oct 14 19:46:00 1987, modified Wed Oct 14 19:46:00 1987, creator 'MPS ', type ASCII, 6389 bytes "FileName.p" , at 0x1975 382 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 46 69 6c 65 4e 61 | 6d 65 2e 70 00 00 00 00 |..FileNa|me.p....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 18 f5 00 | 00 01 7e 9d 99 bd 38 9d |........|..~...8.|
|00000060| 99 bd 38 00 00 08 00 00 | 00 00 00 00 00 00 00 00 |..8.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 8c af 00 00 |........|........|
|00000080| 7b 20 0d 4e 61 6d 65 3a | 09 09 09 09 d2 46 69 6c |{ .Name:|.....Fil|
|00000090| 65 4e 61 6d 65 d3 20 2d | 2d 20 61 20 48 79 70 65 |eName. -|- a Hype|
|000000a0| 72 43 61 72 64 20 22 58 | 46 43 4e 22 20 28 45 78 |rCard "X|FCN" (Ex|
|000000b0| 74 65 72 6e 61 6c 20 46 | 75 6e 63 74 69 6f 6e 29 |ternal F|unction)|
|000000c0| 20 72 65 73 6f 75 72 63 | 65 0d 0d 57 72 69 74 74 | resourc|e..Writt|
|000000d0| 65 6e 20 42 79 3a 20 53 | 74 65 76 65 20 4d 61 6c |en By: S|teve Mal|
|000000e0| 6c 65 72 0d 09 09 09 09 | 09 09 41 70 70 6c 65 20 |ler.....|..Apple |
|000000f0| 43 6f 6d 70 75 74 65 72 | 20 54 72 61 69 6e 69 6e |Computer| Trainin|
|00000100| 67 20 53 75 70 70 6f 72 | 74 0d 09 09 09 09 09 09 |g Suppor|t.......|
|00000110| 43 6f 70 79 72 69 67 68 | 74 20 a9 20 31 39 38 37 |Copyrigh|t . 1987|
|00000120| 20 41 70 70 6c 65 20 43 | 6f 6d 70 75 74 65 72 0d | Apple C|omputer.|
|00000130| 09 09 09 09 09 09 41 70 | 70 6c 65 4c 69 6e 6b 3a |......Ap|pleLink:|
|00000140| 20 4d 41 4c 4c 45 52 31 | 0d 09 09 09 09 09 09 53 | MALLER1|.......S|
|00000150| 61 74 75 72 64 61 79 2c | 20 41 75 67 75 73 74 20 |aturday,| August |
|00000160| 32 32 2c 20 31 39 38 37 | 20 0d 0d 4c 61 6e 67 75 |22, 1987| ..Langu|
|00000170| 61 67 65 3a 09 09 4d 50 | 57 20 50 61 73 63 61 6c |age:..MP|W Pascal|
|00000180| 0d 0d 54 6f 20 62 75 69 | 6c 64 3a 09 09 70 61 73 |..To bui|ld:..pas|
|00000190| 63 61 6c 20 46 69 6c 65 | 4e 61 6d 65 2e 70 0d 09 |cal File|Name.p..|
|000001a0| 09 09 09 09 09 6c 69 6e | 6b 20 2d 6d 20 45 4e 54 |.....lin|k -m ENT|
|000001b0| 52 59 50 4f 49 4e 54 20 | 2d 72 74 20 58 46 43 4e |RYPOINT |-rt XFCN|
|000001c0| 3d 39 31 33 20 2d 73 6e | 20 4d 61 69 6e 3d 46 69 |=913 -sn| Main=Fi|
|000001d0| 6c 65 4e 61 6d 65 20 b6 | 0d 09 09 09 09 09 09 09 |leName .|........|
|000001e0| 2d 74 20 53 54 41 4b 20 | 2d 63 20 57 49 4c 44 20 |-t STAK |-c WILD |
|000001f0| b6 0d 09 09 09 09 09 09 | 09 46 69 6c 65 4e 61 6d |........|.FileNam|
|00000200| 65 2e 70 2e 6f 20 b6 0d | 09 09 09 09 09 09 09 68 |e.p.o ..|.......h|
|00000210| 64 3a 64 65 76 3a 6d 70 | 77 3a 6c 69 62 72 61 72 |d:dev:mp|w:librar|
|00000220| 69 65 73 3a 49 6e 74 65 | 72 66 61 63 65 2e 6f 20 |ies:Inte|rface.o |
|00000230| b6 0d 09 09 09 09 09 09 | 09 68 64 3a 64 65 76 3a |........|.hd:dev:|
|00000240| 6d 70 77 3a 50 4c 69 62 | 72 61 72 69 65 73 3a 50 |mpw:PLib|raries:P|
|00000250| 61 73 6c 69 62 2e 6f 20 | b6 0d 09 09 09 09 09 09 |aslib.o |........|
|00000260| 09 2d 6f 20 22 68 64 3a | 68 79 70 65 72 3a 68 79 |.-o "hd:|hyper:hy|
|00000270| 70 65 72 63 61 72 64 20 | 73 74 61 63 6b 73 3a 54 |percard |stacks:T|
|00000280| 65 73 74 58 46 43 4e 22 | 0d 0d 55 73 61 67 65 3a |estXFCN"|..Usage:|
|00000290| 09 09 09 46 69 6c 65 4e | 61 6d 65 28 22 66 69 6c |...FileN|ame("fil|
|000002a0| 65 54 79 70 65 22 29 09 | 2d 2d 20 22 66 69 6c 65 |eType").|-- "file|
|000002b0| 54 79 70 65 22 20 69 73 | 20 6f 70 74 69 6f 6e 61 |Type" is| optiona|
|000002c0| 6c 0d 0d 45 78 61 6d 70 | 6c 65 73 3a 09 09 46 69 |l..Examp|les:..Fi|
|000002d0| 6c 65 4e 61 6d 65 28 22 | 53 54 41 4b 22 29 09 09 |leName("|STAK")..|
|000002e0| 09 2d 2d 20 6c 69 6d 69 | 74 73 20 6c 69 73 74 20 |.-- limi|ts list |
|000002f0| 74 6f 20 48 79 70 65 72 | 43 61 72 64 20 53 74 61 |to Hyper|Card Sta|
|00000300| 63 6b 73 0d 09 09 09 09 | 09 09 46 69 6c 65 4e 61 |cks.....|..FileNa|
|00000310| 6d 65 28 22 54 45 58 54 | 22 29 09 09 09 2d 2d 20 |me("TEXT|")...-- |
|00000320| 6c 69 6d 69 74 73 20 6c | 69 73 74 20 74 6f 20 74 |limits l|ist to t|
|00000330| 65 78 74 20 66 69 6c 65 | 73 0d 09 09 09 09 09 09 |ext file|s.......|
|00000340| 46 69 6c 65 4e 61 6d 65 | 28 22 41 50 50 4c 22 29 |FileName|("APPL")|
|00000350| 09 09 09 2d 2d 20 6c 69 | 6d 69 74 73 20 6c 69 73 |...-- li|mits lis|
|00000360| 74 20 74 6f 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |t to app|lication|
|00000370| 73 0d 09 09 09 09 09 09 | 46 69 6c 65 4e 61 6d 65 |s.......|FileName|
|00000380| 28 29 20 20 09 09 09 09 | 09 2d 2d 20 6c 69 73 74 |() ....|.-- list|
|00000390| 73 20 41 4c 4c 20 66 69 | 6c 65 73 0d 0d 52 65 73 |s ALL fi|les..Res|
|000003a0| 75 6c 74 3a 09 09 09 54 | 68 65 20 66 75 6c 6c 20 |ult:...T|he full |
|000003b0| 70 61 74 68 6e 61 6d 65 | 20 6f 66 20 74 68 65 20 |pathname| of the |
|000003c0| 73 65 6c 65 63 74 65 64 | 20 66 69 6c 65 2e 0d 09 |selected| file...|
|000003d0| 09 09 09 09 09 46 6f 72 | 20 65 78 61 6d 70 6c 65 |.....For| example|
|000003e0| 2c 20 69 66 20 79 6f 75 | 20 73 65 6c 65 63 74 65 |, if you| selecte|
|000003f0| 64 20 74 68 65 20 66 69 | 6c 65 20 22 41 64 64 72 |d the fi|le "Addr|
|00000400| 65 73 73 20 53 74 61 63 | 6b 22 20 77 68 69 63 68 |ess Stac|k" which|
|00000410| 20 69 73 0d 09 09 09 09 | 09 09 69 6e 20 74 68 65 | is.....|..in the|
|00000420| 20 66 6f 6c 64 65 72 20 | 22 4d 79 20 53 74 61 63 | folder |"My Stac|
|00000430| 6b 73 22 20 69 6e 20 74 | 68 65 20 66 6f 6c 64 65 |ks" in t|he folde|
|00000440| 72 20 22 48 79 70 65 72 | 43 61 72 64 22 20 6f 6e |r "Hyper|Card" on|
|00000450| 20 74 68 65 0d 09 09 09 | 09 09 09 64 69 73 6b 20 | the....|...disk |
|00000460| 22 48 44 22 20 74 68 65 | 20 72 65 73 75 6c 74 20 |"HD" the| result |
|00000470| 69 73 3a 0d 09 09 09 09 | 09 09 09 09 09 48 44 3a |is:.....|.....HD:|
|00000480| 48 79 70 65 72 43 61 72 | 64 3a 4d 79 20 53 74 61 |HyperCar|d:My Sta|
|00000490| 63 6b 73 3a 41 64 64 72 | 65 73 73 20 53 74 61 63 |cks:Addr|ess Stac|
|000004a0| 6b 0d 09 09 09 09 09 09 | 49 66 20 74 68 65 20 75 |k.......|If the u|
|000004b0| 73 65 72 20 63 6c 69 63 | 6b 73 20 d2 43 61 6e 63 |ser clic|ks .Canc|
|000004c0| 65 6c d3 20 61 6e 20 65 | 6d 70 74 79 20 73 74 72 |el. an e|mpty str|
|000004d0| 69 6e 67 20 69 73 20 72 | 65 74 75 72 6e 65 64 2e |ing is r|eturned.|
|000004e0| 0d 09 09 09 09 09 09 0d | 57 61 72 6e 69 6e 67 3a |........|Warning:|
|000004f0| 09 09 41 20 77 6f 72 64 | 20 6f 66 20 63 61 75 74 |..A word| of caut|
|00000500| 69 6f 6e 3a 20 74 68 65 | 20 4d 61 63 27 73 20 66 |ion: the| Mac's f|
|00000510| 69 6c 65 20 73 79 73 74 | 65 6d 20 63 61 6e 20 4e |ile syst|em can N|
|00000520| 4f 54 20 61 63 63 65 70 | 74 0d 09 09 09 09 09 09 |OT accep|t.......|
|00000530| 70 61 74 68 6e 61 6d 65 | 73 20 6c 6f 6e 67 65 72 |pathname|s longer|
|00000540| 20 74 68 61 6e 20 32 35 | 35 20 63 68 61 72 61 63 | than 25|5 charac|
|00000550| 74 65 72 73 2e 20 42 65 | 20 63 61 72 65 66 75 6c |ters. Be| careful|
|00000560| 2e 2e 2e 0d 09 09 09 09 | 09 09 0d 53 63 72 69 70 |........|...Scrip|
|00000570| 74 0d 45 78 61 6d 70 6c | 65 3a 09 09 6f 6e 20 6d |t.Exampl|e:..on m|
|00000580| 6f 75 73 65 55 70 0d 09 | 09 09 09 09 09 09 70 75 |ouseUp..|......pu|
|00000590| 74 20 46 69 6c 65 4e 61 | 6d 65 28 22 54 45 58 54 |t FileNa|me("TEXT|
|000005a0| 22 29 20 69 6e 74 6f 20 | 74 68 65 46 69 6c 65 0d |") into |theFile.|
|000005b0| 09 09 09 09 09 09 09 69 | 66 20 74 68 65 46 69 6c |.......i|f theFil|
|000005c0| 65 20 69 73 20 6e 6f 74 | 20 65 6d 70 74 79 20 74 |e is not| empty t|
|000005d0| 68 65 6e 0d 09 09 09 09 | 09 09 09 09 6f 70 65 6e |hen.....|....open|
|000005e0| 20 66 69 6c 65 20 74 68 | 65 46 69 6c 65 0d 09 09 | file th|eFile...|
|000005f0| 09 09 09 09 09 09 72 65 | 61 64 20 66 72 6f 6d 20 |......re|ad from |
|00000600| 66 69 6c 65 20 74 68 65 | 46 69 6c 65 20 66 6f 72 |file the|File for|
|00000610| 20 32 30 30 30 0d 09 09 | 09 09 09 09 09 09 70 75 | 2000...|......pu|
|00000620| 74 20 69 74 20 69 6e 74 | 6f 20 62 6b 67 6e 64 20 |t it int|o bkgnd |
|00000630| 66 69 65 6c 64 20 31 0d | 09 09 09 09 09 09 09 09 |field 1.|........|
|00000640| 63 6c 6f 73 65 20 66 69 | 6c 65 20 74 68 65 46 69 |close fi|le theFi|
|00000650| 6c 65 0d 09 09 09 09 09 | 09 09 65 6e 64 20 69 66 |le......|..end if|
|00000660| 0d 09 09 09 09 09 09 65 | 6e 64 20 6d 6f 75 73 65 |.......e|nd mouse|
|00000670| 55 70 0d 0d 57 68 79 3f | 09 09 09 09 59 6f 75 20 |Up..Why?|....You |
|00000680| 6d 75 73 74 20 61 63 63 | 65 73 73 20 66 69 6c 65 |must acc|ess file|
|00000690| 73 20 69 6e 20 48 79 70 | 65 72 43 61 72 64 20 62 |s in Hyp|erCard b|
|000006a0| 79 20 74 68 65 69 72 20 | 66 75 6c 6c 20 70 61 74 |y their |full pat|
|000006b0| 68 6e 61 6d 65 2e 0d 09 | 09 09 09 09 09 55 6e 66 |hname...|.....Unf|
|000006c0| 6f 72 74 75 6e 61 74 65 | 6c 79 2c 20 48 79 70 65 |ortunate|ly, Hype|
|000006d0| 72 43 61 72 64 20 6f 66 | 66 65 72 73 20 79 6f 75 |rCard of|fers you|
|000006e0| 20 6e 6f 20 63 6c 65 61 | 72 20 77 61 79 20 6f 66 | no clea|r way of|
|000006f0| 20 66 69 6e 64 69 6e 67 | 0d 09 09 09 09 09 09 6f | finding|.......o|
|00000700| 75 74 20 77 68 61 74 20 | 74 68 61 74 20 66 75 6c |ut what |that ful|
|00000710| 6c 20 6e 61 6d 65 20 69 | 73 2e 20 49 66 20 66 69 |l name i|s. If fi|
|00000720| 6c 65 73 20 61 72 65 20 | 6f 6e 20 61 20 68 61 72 |les are |on a har|
|00000730| 64 20 64 69 73 6b 2c 20 | 69 74 0d 09 09 09 09 09 |d disk, |it......|
|00000740| 09 63 61 6e 20 62 65 20 | 61 20 72 65 61 6c 20 70 |.can be |a real p|
|00000750| 61 69 6e 20 74 6f 20 72 | 65 6d 65 6d 62 65 72 20 |ain to r|emember |
|00000760| 74 68 65 20 65 6e 74 69 | 72 65 20 70 61 74 68 6e |the enti|re pathn|
|00000770| 61 6d 65 2e 20 54 68 69 | 73 0d 09 09 09 09 09 09 |ame. Thi|s.......|
|00000780| 66 75 6e 63 74 69 6f 6e | 20 73 69 6d 70 6c 69 66 |function| simplif|
|00000790| 69 65 73 20 74 68 61 74 | 20 74 61 73 6b 20 66 6f |ies that| task fo|
|000007a0| 72 20 62 6f 74 68 20 74 | 68 65 20 73 74 61 63 6b |r both t|he stack|
|000007b0| 77 61 72 65 20 64 65 76 | 65 6c 6f 70 65 72 0d 09 |ware dev|eloper..|
|000007c0| 09 09 09 09 09 61 6e 64 | 20 74 68 65 20 65 6e 64 |.....and| the end|
|000007d0| 20 75 73 65 72 2e 0d 0d | 54 68 61 6e 6b 73 20 74 | user...|Thanks t|
|000007e0| 6f 3a 09 54 65 64 20 4b | 61 65 68 6c 65 72 2c 20 |o:.Ted K|aehler, |
|000007f0| 44 61 6e 20 57 69 6e 6b | 6c 65 72 2c 20 61 6e 64 |Dan Wink|ler, and|
|00000800| 20 42 69 6c 6c 20 41 74 | 6b 69 6e 73 6f 6e 20 2d | Bill At|kinson -|
|00000810| 20 6d 79 20 68 65 72 6f | 21 0d 0d 7d 0d 0d 7b 24 | my hero|!..}..{$|
|00000820| 53 20 46 69 6c 65 4e 61 | 6d 65 20 7d 0d 0d 55 4e |S FileNa|me }..UN|
|00000830| 49 54 20 53 6e 6f 6f 70 | 79 5f 56 73 5f 54 68 65 |IT Snoop|y_Vs_The|
|00000840| 52 65 64 42 61 72 6f 6e | 3b 09 09 7b 20 6f 62 76 |RedBaron|;..{ obv|
|00000850| 69 6f 75 73 6c 79 20 74 | 68 69 73 20 69 73 20 69 |iously t|his is i|
|00000860| 72 72 65 6c 65 76 61 6e | 74 20 7d 0d 0d 09 49 4e |rrelevan|t }...IN|
|00000870| 54 45 52 46 41 43 45 0d | 0d 09 09 55 53 45 53 0d |TERFACE.|...USES.|
|00000880| 09 09 09 7b 24 4c 4f 41 | 44 20 48 44 3a 48 79 70 |...{$LOA|D HD:Hyp|
|00000890| 65 72 3a 58 43 4d 44 73 | 3a 50 61 73 53 79 6d 44 |er:XCMDs|:PasSymD|
|000008a0| 75 6d 70 7d 0d 09 09 09 | 4d 65 6d 54 79 70 65 73 |ump}....|MemTypes|
|000008b0| 2c 20 51 75 69 63 6b 44 | 72 61 77 2c 20 4f 53 49 |, QuickD|raw, OSI|
|000008c0| 6e 74 66 2c 20 54 6f 6f | 6c 49 6e 74 66 2c 20 50 |ntf, Too|lIntf, P|
|000008d0| 61 63 6b 49 6e 74 66 2c | 20 48 79 70 65 72 58 43 |ackIntf,| HyperXC|
|000008e0| 6d 64 3b 0d 0d 09 09 50 | 52 4f 43 45 44 55 52 45 |md;....P|ROCEDURE|
|000008f0| 20 45 6e 74 72 79 50 6f | 69 6e 74 28 70 61 72 61 | EntryPo|int(para|
|00000900| 6d 50 74 72 3a 20 58 43 | 6d 64 50 74 72 29 3b 0d |mPtr: XC|mdPtr);.|
|00000910| 0d 09 49 4d 50 4c 45 4d | 45 4e 54 41 54 49 4f 4e |..IMPLEM|ENTATION|
|00000920| 0d 0d 09 09 54 59 50 45 | 0d 09 09 09 53 74 72 33 |....TYPE|....Str3|
|00000930| 31 20 3d 20 53 74 72 69 | 6e 67 5b 33 31 5d 3b 0d |1 = Stri|ng[31];.|
|00000940| 0d 09 09 50 52 4f 43 45 | 44 55 52 45 20 46 69 6c |...PROCE|DURE Fil|
|00000950| 65 4e 61 6d 65 28 70 61 | 72 61 6d 50 74 72 3a 20 |eName(pa|ramPtr: |
|00000960| 58 43 6d 64 50 74 72 29 | 3b 0d 09 09 09 46 4f 52 |XCmdPtr)|;....FOR|
|00000970| 57 41 52 44 3b 0d 0d 09 | 09 50 52 4f 43 45 44 55 |WARD;...|.PROCEDU|
|00000980| 52 45 20 45 6e 74 72 79 | 50 6f 69 6e 74 28 70 61 |RE Entry|Point(pa|
|00000990| 72 61 6d 50 74 72 3a 20 | 58 43 6d 64 50 74 72 29 |ramPtr: |XCmdPtr)|
|000009a0| 3b 0d 0d 09 09 09 42 45 | 47 49 4e 0d 09 09 09 09 |;.....BE|GIN.....|
|000009b0| 46 69 6c 65 4e 61 6d 65 | 28 70 61 72 61 6d 50 74 |FileName|(paramPt|
|000009c0| 72 29 3b 0d 09 09 09 45 | 4e 44 3b 0d 0d 09 09 50 |r);....E|ND;....P|
|000009d0| 52 4f 43 45 44 55 52 45 | 20 46 69 6c 65 4e 61 6d |ROCEDURE| FileNam|
|000009e0| 65 28 70 61 72 61 6d 50 | 74 72 3a 20 58 43 6d 64 |e(paramP|tr: XCmd|
|000009f0| 50 74 72 29 3b 0d 0d 09 | 09 09 56 41 52 0d 09 09 |Ptr);...|..VAR...|
|00000a00| 09 09 6d 79 57 44 50 42 | 3a 20 57 44 50 42 50 74 |..myWDPB|: WDPBPt|
|00000a10| 72 3b 09 09 09 09 09 09 | 09 7b 20 73 6f 6d 65 20 |r;......|.{ some |
|00000a20| 76 61 72 69 61 6e 74 73 | 20 6f 66 20 74 68 65 20 |variants| of the |
|00000a30| 73 61 6d 65 20 61 6e 69 | 6d 61 6c 20 7d 0d 09 09 |same ani|mal }...|
|00000a40| 09 09 6d 79 43 50 42 3a | 20 43 49 6e 66 6f 50 42 |..myCPB:| CInfoPB|
|00000a50| 50 74 72 3b 0d 09 09 09 | 09 6d 79 50 42 3a 20 48 |Ptr;....|.myPB: H|
|00000a60| 50 61 72 6d 42 6c 6b 50 | 74 72 3b 0d 09 09 09 09 |ParmBlkP|tr;.....|
|00000a70| 66 75 6c 6c 50 61 74 68 | 4e 61 6d 65 3a 20 53 74 |fullPath|Name: St|
|00000a80| 72 32 35 35 3b 0d 09 09 | 09 09 6e 75 6d 54 79 70 |r255;...|..numTyp|
|00000a90| 65 73 3a 20 49 6e 74 65 | 67 65 72 3b 0d 09 09 09 |es: Inte|ger;....|
|00000aa0| 09 72 65 70 6c 79 3a 20 | 53 46 52 65 70 6c 79 3b |.reply: |SFReply;|
|00000ab0| 0d 09 09 09 09 74 79 70 | 65 4c 69 73 74 3a 20 53 |.....typ|eList: S|
|00000ac0| 46 54 79 70 65 4c 69 73 | 74 3b 0d 0d 09 09 09 09 |FTypeLis|t;......|
|00000ad0| 7b 24 49 20 58 43 6d 64 | 47 6c 75 65 2e 69 6e 63 |{$I XCmd|Glue.inc|
|00000ae0| 20 7d 0d 0d 09 09 09 46 | 55 4e 43 54 49 4f 4e 20 | }.....F|UNCTION |
|00000af0| 54 68 65 79 43 68 6f 73 | 65 41 46 69 6c 65 3a 20 |TheyChos|eAFile: |
|00000b00| 42 6f 6f 6c 65 61 6e 3b | 0d 0d 09 09 09 09 56 41 |Boolean;|......VA|
|00000b10| 52 0d 09 09 09 09 09 70 | 74 3a 20 50 6f 69 6e 74 |R......p|t: Point|
|00000b20| 3b 0d 0d 09 09 09 09 42 | 45 47 49 4e 0d 09 09 09 |;......B|EGIN....|
|00000b30| 09 09 54 68 65 79 43 68 | 6f 73 65 41 46 69 6c 65 |..TheyCh|oseAFile|
|00000b40| 20 3a 3d 20 46 41 4c 53 | 45 3b 0d 09 09 09 09 09 | := FALS|E;......|
|00000b50| 70 74 2e 76 20 3a 3d 20 | 36 30 3b 0d 09 09 09 09 |pt.v := |60;.....|
|00000b60| 09 70 74 2e 68 20 3a 3d | 20 38 32 3b 0d 09 09 09 |.pt.h :=| 82;....|
|00000b70| 09 09 53 46 47 65 74 46 | 69 6c 65 28 70 74 2c 20 |..SFGetF|ile(pt, |
|00000b80| 27 27 2c 20 4e 49 4c 2c | 20 6e 75 6d 54 79 70 65 |'', NIL,| numType|
|00000b90| 73 2c 20 74 79 70 65 4c | 69 73 74 2c 20 4e 49 4c |s, typeL|ist, NIL|
|00000ba0| 2c 20 72 65 70 6c 79 29 | 3b 0d 09 09 09 09 09 09 |, reply)|;.......|
|00000bb0| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|00000bc0| 09 09 7b 20 68 61 76 65 | 20 27 65 6d 20 70 69 63 |..{ have| 'em pic|
|00000bd0| 6b 20 61 20 66 69 6c 65 | 20 7d 0d 09 09 09 09 09 |k a file| }......|
|00000be0| 49 46 20 72 65 70 6c 79 | 2e 67 6f 6f 64 20 54 48 |IF reply|.good TH|
|00000bf0| 45 4e 20 09 09 09 09 09 | 09 09 09 09 09 7b 20 69 |EN .....|.....{ i|
|00000c00| 66 20 74 68 65 79 20 64 | 69 64 6e 27 74 20 63 68 |f they d|idn't ch|
|00000c10| 6f 6f 73 65 20 43 61 6e | 63 65 6c 20 7d 0d 09 09 |oose Can|cel }...|
|00000c20| 09 09 09 09 42 45 47 49 | 4e 0d 09 09 09 09 09 09 |....BEGI|N.......|
|00000c30| 09 54 68 65 79 43 68 6f | 73 65 41 46 69 6c 65 20 |.TheyCho|seAFile |
|00000c40| 3a 3d 20 54 52 55 45 3b | 0d 09 09 09 09 09 09 09 |:= TRUE;|........|
|00000c50| 66 75 6c 6c 50 61 74 68 | 4e 61 6d 65 20 3a 3d 20 |fullPath|Name := |
|00000c60| 72 65 70 6c 79 2e 66 4e | 61 6d 65 3b 20 09 09 09 |reply.fN|ame; ...|
|00000c70| 7b 20 73 74 61 72 74 20 | 74 68 65 20 62 61 6c 6c |{ start |the ball|
|00000c80| 20 72 6f 6c 6c 69 6e 67 | 20 7d 0d 09 09 09 09 09 | rolling| }......|
|00000c90| 09 45 4e 44 3b 0d 09 09 | 09 09 45 4e 44 3b 0d 0d |.END;...|..END;..|
|00000ca0| 09 09 09 50 52 4f 43 45 | 44 55 52 45 20 42 75 69 |...PROCE|DURE Bui|
|00000cb0| 6c 64 54 68 65 50 61 74 | 68 4e 61 6d 65 3b 0d 0d |ldThePat|hName;..|
|00000cc0| 09 09 09 09 56 41 52 0d | 09 09 09 09 09 6e 61 6d |....VAR.|.....nam|
|00000cd0| 65 3a 20 53 74 72 32 35 | 35 3b 0d 09 09 09 09 09 |e: Str25|5;......|
|00000ce0| 65 72 72 3a 20 49 6e 74 | 65 67 65 72 3b 0d 0d 09 |err: Int|eger;...|
|00000cf0| 09 09 09 42 45 47 49 4e | 0d 09 09 09 09 09 6e 61 |...BEGIN|......na|
|00000d00| 6d 65 20 3a 3d 20 27 27 | 3b 09 09 09 09 09 09 09 |me := ''|;.......|
|00000d10| 09 09 09 09 09 09 09 7b | 20 73 74 61 72 74 20 77 |.......{| start w|
|00000d20| 69 74 68 20 61 6e 20 65 | 6d 70 74 79 20 6e 61 6d |ith an e|mpty nam|
|00000d30| 65 20 7d 0d 09 09 09 09 | 09 6d 79 50 42 5e 2e 69 |e }.....|.myPB^.i|
|00000d40| 6f 4e 61 6d 65 50 74 72 | 20 3a 3d 20 40 6e 61 6d |oNamePtr| := @nam|
|00000d50| 65 3b 09 09 09 09 09 09 | 09 7b 20 77 65 20 77 61 |e;......|.{ we wa|
|00000d60| 6e 74 20 74 68 65 20 56 | 6f 6c 75 6d 65 20 6e 61 |nt the V|olume na|
|00000d70| 6d 65 20 7d 0d 09 09 09 | 09 20 20 6d 79 50 42 5e |me }....|. myPB^|
|00000d80| 2e 69 6f 43 6f 6d 70 6c | 65 74 69 6f 6e 20 3a 3d |.ioCompl|etion :=|
|00000d90| 20 70 6f 69 6e 74 65 72 | 28 30 29 3b 0d 09 09 09 | pointer|(0);....|
|00000da0| 09 09 6d 79 50 42 5e 2e | 69 6f 56 52 65 66 4e 75 |..myPB^.|ioVRefNu|
|00000db0| 6d 20 3a 3d 20 72 65 70 | 6c 79 2e 76 52 65 66 4e |m := rep|ly.vRefN|
|00000dc0| 75 6d 3b 09 09 09 7b 20 | 72 65 74 75 72 6e 65 64 |um;...{ |returned|
|00000dd0| 20 66 72 6f 6d 20 53 46 | 47 65 74 46 69 6c 65 20 | from SF|GetFile |
|00000de0| 7d 0d 09 09 09 09 09 6d | 79 50 42 5e 2e 69 6f 56 |}......m|yPB^.ioV|
|00000df0| 6f 6c 49 6e 64 65 78 20 | 3a 3d 20 30 3b 09 09 09 |olIndex |:= 0;...|
|00000e00| 09 09 09 09 09 7b 20 75 | 73 65 20 74 68 65 20 76 |.....{ u|se the v|
|00000e10| 52 65 66 4e 75 6d 20 61 | 6e 64 20 6e 61 6d 65 20 |RefNum a|nd name |
|00000e20| 7d 0d 09 09 09 09 09 65 | 72 72 20 3a 3d 20 50 42 |}......e|rr := PB|
|00000e30| 48 47 65 74 56 49 6e 66 | 6f 28 6d 79 50 42 2c 20 |HGetVInf|o(myPB, |
|00000e40| 46 41 4c 53 45 29 3b 09 | 09 09 7b 20 66 69 6c 6c |FALSE);.|..{ fill|
|00000e50| 20 69 6e 20 74 68 65 20 | 56 6f 6c 75 6d 65 20 69 | in the |Volume i|
|00000e60| 6e 66 6f 20 7d 0d 09 09 | 09 09 09 49 46 20 65 72 |nfo }...|...IF er|
|00000e70| 72 20 3c 3e 20 6e 6f 45 | 72 72 20 54 48 45 4e 0d |r <> noE|rr THEN.|
|00000e80| 09 09 09 09 09 09 45 78 | 69 74 28 46 69 6c 65 4e |......Ex|it(FileN|
|00000e90| 61 6d 65 29 3b 0d 0d 7b | 20 4e 6f 77 20 77 65 20 |ame);..{| Now we |
|00000ea0| 6e 65 65 64 20 74 68 65 | 20 57 6f 72 6b 69 6e 67 |need the| Working|
|00000eb0| 20 44 69 72 65 63 74 6f | 72 79 20 28 57 44 29 20 | Directo|ry (WD) |
|00000ec0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 62 65 63 61 |informat|ion beca|
|00000ed0| 75 73 65 20 77 65 27 72 | 65 20 67 6f 69 6e 67 20 |use we'r|e going |
|00000ee0| 0d 09 74 6f 20 73 74 65 | 70 20 62 61 63 6b 77 61 |..to ste|p backwa|
|00000ef0| 72 64 73 20 66 72 6f 6d | 20 74 68 65 20 66 69 6c |rds from| the fil|
|00000f00| 65 20 74 68 72 6f 75 67 | 68 20 61 6c 6c 20 6f 66 |e throug|h all of|
|00000f10| 20 74 68 65 20 74 68 65 | 20 66 6f 6c 64 65 72 73 | the the| folders|
|00000f20| 20 75 6e 74 69 6c 0d 09 | 77 65 20 72 65 61 63 68 | until..|we reach|
|00000f30| 20 74 68 65 20 72 6f 6f | 74 20 64 69 72 65 63 74 | the roo|t direct|
|00000f40| 6f 72 79 20 7d 0d 09 0d | 09 09 09 09 09 6d 79 57 |ory }...|.....myW|
|00000f50| 44 50 42 5e 2e 69 6f 56 | 52 65 66 4e 75 6d 20 3a |DPB^.ioV|RefNum :|
|00000f60| 3d 20 72 65 70 6c 79 2e | 76 52 65 66 4e 75 6d 3b |= reply.|vRefNum;|
|00000f70| 09 09 7b 20 74 68 69 73 | 20 67 6f 74 20 73 65 74 |..{ this| got set|
|00000f80| 20 74 6f 20 30 20 61 62 | 6f 76 65 20 7d 0d 09 09 | to 0 ab|ove }...|
|00000f90| 09 09 09 6d 79 57 44 50 | 42 5e 2e 69 6f 57 44 50 |...myWDP|B^.ioWDP|
|00000fa0| 72 6f 63 49 44 20 3a 3d | 20 30 3b 09 09 09 09 09 |rocID :=| 0;.....|
|00000fb0| 09 09 7b 20 75 73 65 20 | 74 68 65 20 76 52 65 66 |..{ use |the vRef|
|00000fc0| 4e 75 6d 20 7d 0d 09 09 | 09 09 09 6d 79 57 44 50 |Num }...|...myWDP|
|00000fd0| 42 5e 2e 69 6f 57 44 49 | 6e 64 65 78 20 3a 3d 20 |B^.ioWDI|ndex := |
|00000fe0| 30 3b 09 09 09 09 09 09 | 09 09 7b 20 77 65 20 77 |0;......|..{ we w|
|00000ff0| 61 6e 74 20 41 4c 4c 20 | 64 69 72 65 63 74 6f 72 |ant ALL |director|
|00001000| 69 65 73 20 7d 0d 09 09 | 09 09 09 65 72 72 20 3a |ies }...|...err :|
|00001010| 3d 20 50 42 47 65 74 57 | 44 49 6e 66 6f 28 6d 79 |= PBGetW|DInfo(my|
|00001020| 57 44 50 42 2c 20 46 41 | 4c 53 45 29 3b 09 09 7b |WDPB, FA|LSE);..{|
|00001030| 20 64 6f 20 69 74 20 7d | 0d 09 09 09 09 09 49 46 | do it }|......IF|
|00001040| 20 65 72 72 20 3c 3e 20 | 6e 6f 45 72 72 20 54 48 | err <> |noErr TH|
|00001050| 45 4e 0d 09 09 09 09 09 | 09 45 78 69 74 28 46 69 |EN......|.Exit(Fi|
|00001060| 6c 65 4e 61 6d 65 29 3b | 0d 0d 09 09 09 09 09 6d |leName);|.......m|
|00001070| 79 43 50 42 5e 2e 69 6f | 46 44 69 72 49 6e 64 65 |yCPB^.io|FDirInde|
|00001080| 78 20 3a 3d 20 2d 20 31 | 3b 09 09 09 09 09 09 7b |x := - 1|;......{|
|00001090| 20 75 73 65 20 74 68 65 | 20 69 6f 44 69 72 49 44 | use the| ioDirID|
|000010a0| 20 66 69 65 6c 64 20 6f | 6e 6c 79 20 7d 0d 09 09 | field o|nly }...|
|000010b0| 09 09 09 6d 79 43 50 42 | 5e 2e 69 6f 44 72 44 69 |...myCPB|^.ioDrDi|
|000010c0| 72 49 44 20 3a 3d 20 6d | 79 57 44 50 42 5e 2e 69 |rID := m|yWDPB^.i|
|000010d0| 6f 57 44 44 69 72 49 44 | 3b 7b 20 69 6e 66 6f 20 |oWDDirID|;{ info |
|000010e0| 72 65 74 75 72 6e 65 64 | 20 61 62 6f 76 65 20 7d |returned| above }|
|000010f0| 0d 09 09 09 09 09 65 72 | 72 20 3a 3d 20 50 42 47 |......er|r := PBG|
|00001100| 65 74 43 61 74 49 6e 66 | 6f 28 6d 79 43 50 42 2c |etCatInf|o(myCPB,|
|00001110| 20 46 41 4c 53 45 29 3b | 09 09 7b 20 64 6f 20 69 | FALSE);|..{ do i|
|00001120| 74 20 7d 0d 09 09 09 09 | 09 49 46 20 65 72 72 20 |t }.....|.IF err |
|00001130| 3c 3e 20 6e 6f 45 72 72 | 20 54 48 45 4e 0d 09 09 |<> noErr| THEN...|
|00001140| 09 09 09 09 45 78 69 74 | 28 46 69 6c 65 4e 61 6d |....Exit|(FileNam|
|00001150| 65 29 3b 0d 0d 7b 20 48 | 65 72 65 20 73 74 61 72 |e);..{ H|ere star|
|00001160| 74 73 20 74 68 65 20 72 | 65 61 6c 20 77 6f 72 6b |ts the r|eal work|
|00001170| 20 2d 20 73 74 61 72 74 | 20 74 6f 20 63 6c 69 6d | - start| to clim|
|00001180| 62 20 74 68 65 20 74 72 | 65 65 20 62 79 20 63 6f |b the tr|ee by co|
|00001190| 6e 74 69 6e 75 61 6c 6c | 79 0d 09 6c 6f 6f 6b 69 |ntinuall|y..looki|
|000011a0| 6e 67 20 69 6e 20 74 68 | 65 20 69 6f 44 72 50 61 |ng in th|e ioDrPa|
|000011b0| 72 49 64 20 66 69 65 6c | 64 20 66 6f 72 20 74 68 |rId fiel|d for th|
|000011c0| 65 20 6e 65 78 74 20 64 | 69 72 65 63 74 6f 72 79 |e next d|irectory|
|000011d0| 20 61 62 6f 76 65 20 75 | 6e 74 69 6c 20 77 65 0d | above u|ntil we.|
|000011e0| 09 66 61 69 6c 2e 2e 2e | 20 7d 0d 09 0d 09 09 09 |.fail...| }......|
|000011f0| 09 09 6d 79 43 50 42 5e | 2e 69 6f 44 72 44 69 72 |..myCPB^|.ioDrDir|
|00001200| 49 44 20 3a 3d 20 6d 79 | 43 50 42 5e 2e 69 6f 44 |ID := my|CPB^.ioD|
|00001210| 72 50 61 72 49 64 3b 09 | 7b 20 74 68 65 20 66 69 |rParId;.|{ the fi|
|00001220| 72 73 74 20 66 6f 6c 64 | 65 72 7d 0d 09 09 09 09 |rst fold|er}.....|
|00001230| 09 66 75 6c 6c 50 61 74 | 68 4e 61 6d 65 20 3a 3d |.fullPat|hName :=|
|00001240| 20 43 6f 6e 63 61 74 28 | 6d 79 43 50 42 5e 2e 69 | Concat(|myCPB^.i|
|00001250| 6f 4e 61 6d 65 50 74 72 | 5e 2c 20 27 3a 27 2c 20 |oNamePtr|^, ':', |
|00001260| 72 65 70 6c 79 2e 66 4e | 61 6d 65 29 3b 0d 09 09 |reply.fN|ame);...|
|00001270| 09 09 09 52 45 50 45 41 | 54 0d 09 09 09 09 09 09 |...REPEA|T.......|
|00001280| 6d 79 43 50 42 5e 2e 69 | 6f 44 72 44 69 72 49 44 |myCPB^.i|oDrDirID|
|00001290| 20 3a 3d 20 6d 79 43 50 | 42 5e 2e 69 6f 44 72 50 | := myCP|B^.ioDrP|
|000012a0| 61 72 49 64 3b 0d 09 09 | 09 09 09 09 65 72 72 20 |arId;...|....err |
|000012b0| 3a 3d 20 50 42 47 65 74 | 43 61 74 49 6e 66 6f 28 |:= PBGet|CatInfo(|
|000012c0| 6d 79 43 50 42 2c 20 46 | 41 4c 53 45 29 3b 09 7b |myCPB, F|ALSE);.{|
|000012d0| 20 74 68 65 20 6e 65 78 | 74 20 6c 65 76 65 6c 20 | the nex|t level |
|000012e0| 7d 0d 0d 7b 20 42 65 20 | 63 61 72 65 66 75 6c 20 |}..{ Be |careful |
|000012f0| 6f 66 20 61 6e 20 65 72 | 72 6f 72 20 72 65 74 75 |of an er|ror retu|
|00001300| 72 6e 65 64 20 68 65 72 | 65 20 2d 20 69 74 20 6d |rned her|e - it m|
|00001310| 65 61 6e 73 20 74 68 65 | 20 75 73 65 72 20 63 68 |eans the| user ch|
|00001320| 6f 73 65 20 61 20 66 69 | 6c 65 20 0d 09 6f 6e 20 |ose a fi|le ..on |
|00001330| 74 68 65 20 64 65 73 6b | 74 6f 70 20 6c 65 76 65 |the desk|top leve|
|00001340| 6c 20 6f 66 20 74 68 69 | 73 20 76 6f 6c 75 6d 65 |l of thi|s volume|
|00001350| 2e 20 49 66 20 74 68 69 | 73 20 69 73 20 74 68 65 |. If thi|s is the|
|00001360| 20 63 61 73 65 2c 20 6a | 75 73 74 20 73 74 6f 70 | case, j|ust stop|
|00001370| 0d 09 68 65 72 65 20 61 | 6e 64 20 72 65 74 75 72 |..here a|nd retur|
|00001380| 6e 20 22 56 6f 6c 75 6d | 65 4e 61 6d 65 3a 46 69 |n "Volum|eName:Fi|
|00001390| 6c 65 4e 61 6d 65 22 2c | 20 6f 74 68 65 72 77 69 |leName",| otherwi|
|000013a0| 73 65 20 6c 6f 6f 70 20 | 75 6e 74 69 6c 20 66 61 |se loop |until fa|
|000013b0| 69 6c 75 72 65 20 7d 0d | 09 09 09 09 09 09 49 46 |ilure }.|......IF|
|000013c0| 20 65 72 72 20 3d 20 6e | 6f 45 72 72 20 54 48 45 | err = n|oErr THE|
|000013d0| 4e 0d 09 09 09 09 09 09 | 09 66 75 6c 6c 50 61 74 |N.......|.fullPat|
|000013e0| 68 4e 61 6d 65 20 3a 3d | 20 43 6f 6e 63 61 74 28 |hName :=| Concat(|
|000013f0| 6d 79 43 50 42 5e 2e 69 | 6f 4e 61 6d 65 50 74 72 |myCPB^.i|oNamePtr|
|00001400| 5e 2c 20 27 3a 27 2c 20 | 66 75 6c 6c 50 61 74 68 |^, ':', |fullPath|
|00001410| 4e 61 6d 65 29 3b 0d 0d | 09 09 09 09 09 55 4e 54 |Name);..|.....UNT|
|00001420| 49 4c 20 65 72 72 20 3c | 3e 20 6e 6f 45 72 72 3b |IL err <|> noErr;|
|00001430| 0d 09 09 09 09 09 0d 09 | 09 09 09 45 4e 44 3b 09 |........|...END;.|
|00001440| 09 7b 20 50 52 4f 43 45 | 44 55 52 45 20 42 75 69 |.{ PROCE|DURE Bui|
|00001450| 6c 64 54 68 65 50 61 74 | 68 4e 61 6d 65 20 7d 0d |ldThePat|hName }.|
|00001460| 0d 09 09 09 42 45 47 49 | 4e 09 09 7b 20 50 52 4f |....BEGI|N..{ PRO|
|00001470| 43 45 44 55 52 45 20 46 | 69 6c 65 4e 61 6d 65 20 |CEDURE F|ileName |
|00001480| 7d 0d 09 09 09 0d 7b 20 | 46 69 72 73 74 20 77 65 |}.....{ |First we|
|00001490| 20 61 6c 6c 6f 63 61 74 | 65 20 73 6f 6d 65 20 6d | allocat|e some m|
|000014a0| 65 6d 6f 72 79 20 69 6e | 20 74 68 65 20 68 65 61 |emory in| the hea|
|000014b0| 70 20 66 6f 72 20 74 68 | 65 20 70 61 72 61 6d 65 |p for th|e parame|
|000014c0| 74 65 72 20 62 6c 6f 63 | 6b 2e 20 54 68 69 73 0d |ter bloc|k. This.|
|000014d0| 09 63 6f 75 6c 64 20 69 | 6e 20 74 68 65 6f 72 79 |.could i|n theory|
|000014e0| 20 77 6f 72 6b 20 6f 6e | 20 74 68 65 20 73 74 61 | work on| the sta|
|000014f0| 63 6b 2c 20 62 75 74 20 | 69 6e 20 72 65 61 6c 69 |ck, but |in reali|
|00001500| 74 79 20 69 74 20 6d 61 | 6b 65 73 20 6e 6f 20 64 |ty it ma|kes no d|
|00001510| 69 66 66 65 72 65 6e 63 | 65 0d 09 61 73 20 77 65 |ifferenc|e..as we|
|00001520| 27 72 65 20 65 6e 74 69 | 72 65 6c 79 20 6d 6f 64 |'re enti|rely mod|
|00001530| 61 6c 20 28 75 67 68 29 | 20 68 65 72 65 2e 2e 2e |al (ugh)| here...|
|00001540| 20 7d 0d 09 0d 09 09 09 | 09 66 75 6c 6c 50 61 74 | }......|.fullPat|
|00001550| 68 4e 61 6d 65 20 3a 3d | 20 27 27 3b 0d 09 0d 09 |hName :=| '';....|
|00001560| 09 09 09 6d 79 43 50 42 | 20 3a 3d 20 43 49 6e 66 |...myCPB| := CInf|
|00001570| 6f 50 42 50 74 72 28 4e | 65 77 50 74 72 28 53 69 |oPBPtr(N|ewPtr(Si|
|00001580| 7a 65 4f 66 28 48 50 61 | 72 61 6d 42 6c 6f 63 6b |zeOf(HPa|ramBlock|
|00001590| 52 65 63 29 29 29 3b 0d | 09 09 09 09 49 46 20 6f |Rec)));.|....IF o|
|000015a0| 72 64 34 28 6d 79 43 50 | 42 29 20 3c 3d 20 30 20 |rd4(myCP|B) <= 0 |
|000015b0| 54 48 45 4e 0d 09 09 09 | 09 09 45 78 69 74 28 46 |THEN....|..Exit(F|
|000015c0| 69 6c 65 4e 61 6d 65 29 | 3b 09 09 09 09 09 09 09 |ileName)|;.......|
|000015d0| 7b 20 52 61 74 73 21 20 | 42 69 6c 6c 20 64 69 64 |{ Rats! |Bill did|
|000015e0| 6e 27 74 20 6c 65 61 76 | 65 20 65 6e 6f 75 67 68 |n't leav|e enough|
|000015f0| 20 72 6f 6f 6d 20 7d 0d | 09 09 09 09 6d 79 57 44 | room }.|....myWD|
|00001600| 50 42 20 3a 3d 20 57 44 | 50 42 50 74 72 28 6d 79 |PB := WD|PBPtr(my|
|00001610| 43 50 42 29 3b 09 09 09 | 7b 20 69 63 6b 79 20 50 |CPB);...|{ icky P|
|00001620| 61 73 63 61 6c 20 74 79 | 70 65 20 63 6f 65 72 63 |ascal ty|pe coerc|
|00001630| 69 6f 6e 73 20 66 6f 6c | 6c 6f 77 20 7d 0d 09 09 |ions fol|low }...|
|00001640| 09 09 6d 79 50 42 20 3a | 3d 20 48 50 61 72 6d 42 |..myPB :|= HParmB|
|00001650| 6c 6b 50 74 72 28 6d 79 | 43 50 42 29 3b 0d 0d 09 |lkPtr(my|CPB);...|
|00001660| 09 09 09 6e 75 6d 54 79 | 70 65 73 20 3a 3d 20 31 |...numTy|pes := 1|
|00001670| 3b 09 09 09 09 09 09 09 | 09 7b 20 66 6f 72 20 53 |;.......|.{ for S|
|00001680| 46 47 65 74 46 69 6c 65 | 20 7d 0d 09 09 09 09 57 |FGetFile| }.....W|
|00001690| 49 54 48 20 70 61 72 61 | 6d 50 74 72 5e 20 44 4f |ITH para|mPtr^ DO|
|000016a0| 0d 09 09 09 09 09 42 45 | 47 49 4e 0d 09 09 09 09 |......BE|GIN.....|
|000016b0| 09 09 49 46 20 70 61 72 | 61 6d 43 6f 75 6e 74 20 |..IF par|amCount |
|000016c0| 3d 20 30 20 54 48 45 4e | 0d 09 09 09 09 09 09 09 |= 0 THEN|........|
|000016d0| 6e 75 6d 54 79 70 65 73 | 20 3a 3d 20 2d 20 31 09 |numTypes| := - 1.|
|000016e0| 09 09 09 09 7b 20 46 69 | 6c 65 4e 61 6d 65 28 29 |....{ Fi|leName()|
|000016f0| 20 2d 20 67 65 74 20 61 | 6c 6c 20 66 69 6c 65 73 | - get a|ll files|
|00001700| 20 7d 0d 09 09 09 09 09 | 09 45 4c 53 45 0d 09 09 | }......|.ELSE...|
|00001710| 09 09 09 09 09 42 6c 6f | 63 6b 4d 6f 76 65 28 70 |.....Blo|ckMove(p|
|00001720| 61 72 61 6d 73 5b 31 5d | 5e 2c 20 40 74 79 70 65 |arams[1]|^, @type|
|00001730| 4c 69 73 74 5b 30 5d 2c | 20 34 29 3b 0d 09 09 09 |List[0],| 4);....|
|00001740| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 09 09 |........|........|
|00001750| 7b 20 46 69 6c 65 4e 61 | 6d 65 28 22 54 59 50 45 |{ FileNa|me("TYPE|
|00001760| 22 29 20 7d 0d 0d 09 09 | 09 09 09 09 49 46 20 54 |") }....|....IF T|
|00001770| 68 65 79 43 68 6f 73 65 | 41 46 69 6c 65 20 54 48 |heyChose|AFile TH|
|00001780| 45 4e 0d 09 09 09 09 09 | 09 09 42 75 69 6c 64 54 |EN......|..BuildT|
|00001790| 68 65 50 61 74 68 4e 61 | 6d 65 3b 0d 0d 7b 20 50 |hePathNa|me;..{ P|
|000017a0| 61 73 54 6f 5a 65 72 6f | 20 69 73 20 76 65 72 79 |asToZero| is very|
|000017b0| 20 69 6e 74 65 72 65 73 | 74 69 6e 67 20 2d 20 69 | interes|ting - i|
|000017c0| 74 20 69 73 20 61 20 48 | 79 70 65 72 54 61 6c 6b |t is a H|yperTalk|
|000017d0| 20 63 6f 6d 6d 61 6e 64 | 0d 09 74 68 61 74 20 79 | command|..that y|
|000017e0| 6f 75 20 63 61 6e 20 61 | 63 74 75 61 6c 6c 79 20 |ou can a|ctually |
|000017f0| 63 61 6c 6c 20 66 72 6f | 6d 20 4f 55 54 53 49 44 |call fro|m OUTSID|
|00001800| 45 20 6f 66 20 48 79 70 | 65 72 43 61 72 64 2e 0d |E of Hyp|erCard..|
|00001810| 09 59 6f 75 20 6e 65 65 | 64 20 69 74 20 62 65 63 |.You nee|d it bec|
|00001820| 61 75 73 65 20 48 79 70 | 65 72 43 61 72 64 20 75 |ause Hyp|erCard u|
|00001830| 73 65 73 20 43 20 66 6f | 72 6d 61 74 20 73 74 72 |ses C fo|rmat str|
|00001840| 69 6e 67 73 20 77 69 74 | 68 0d 09 6e 6f 20 6c 65 |ings wit|h..no le|
|00001850| 6e 67 74 68 20 62 79 74 | 65 3b 20 74 68 65 79 20 |ngth byt|e; they |
|00001860| 61 72 65 20 74 65 72 6d | 69 6e 61 74 65 64 20 62 |are term|inated b|
|00001870| 79 20 61 20 6e 75 6c 6c | 20 62 79 74 65 2e 20 54 |y a null| byte. T|
|00001880| 68 65 79 20 61 72 65 0d | 09 61 63 74 75 61 6c 6c |hey are.|.actuall|
|00001890| 79 20 48 41 4e 44 4c 45 | 53 20 74 6f 20 43 20 66 |y HANDLE|S to C f|
|000018a0| 6f 72 6d 61 74 20 73 74 | 72 69 6e 67 73 2e 20 4e |ormat st|rings. N|
|000018b0| 69 63 65 20 77 6f 72 6b | 2c 20 44 61 6e 21 20 7d |ice work|, Dan! }|
|000018c0| 0d 09 0d 09 09 09 09 09 | 09 72 65 74 75 72 6e 56 |........|.returnV|
|000018d0| 61 6c 75 65 20 3a 3d 20 | 50 61 73 54 6f 5a 65 72 |alue := |PasToZer|
|000018e0| 6f 28 66 75 6c 6c 50 61 | 74 68 4e 61 6d 65 29 3b |o(fullPa|thName);|
|000018f0| 0d 0d 09 09 09 09 09 45 | 4e 44 3b 09 09 7b 20 57 |.......E|ND;..{ W|
|00001900| 49 54 48 20 70 61 72 61 | 6d 50 74 72 5e 20 44 4f |ITH para|mPtr^ DO|
|00001910| 20 7d 0d 0d 09 09 09 09 | 44 69 73 70 6f 73 50 74 | }......|DisposPt|
|00001920| 72 28 70 6f 69 6e 74 65 | 72 28 6d 79 43 50 42 29 |r(pointe|r(myCPB)|
|00001930| 29 3b 20 09 09 09 7b 20 | 43 6c 65 61 6e 20 55 70 |); ...{ |Clean Up|
|00001940| 20 59 6f 75 72 20 48 65 | 61 70 21 20 7d 0d 0d 09 | Your He|ap! }...|
|00001950| 09 09 45 4e 44 3b 09 09 | 7b 20 50 52 4f 43 45 44 |..END;..|{ PROCED|
|00001960| 55 52 45 20 46 69 6c 65 | 4e 61 6d 65 20 7d 0d 0d |URE File|Name }..|
|00001970| 45 4e 44 2e 0d 00 00 00 | 00 00 00 00 00 00 00 00 |END.....|........|
|00001980| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00001990| 79 70 65 72 43 61 72 64 | 20 22 58 46 43 4e 22 20 |yperCard| "XFCN" |
|000019a0| 52 65 73 6f 75 72 63 65 | 0d 0d 57 72 69 74 74 65 |Resource|..Writte|
|000019b0| 0a 46 69 6c 65 4e 61 6d | 65 2e 70 01 02 00 00 00 |.FileNam|e.p.....|
|000019c0| 50 61 72 74 53 49 54 78 | 00 00 00 00 00 00 00 00 |PartSITx|........|
|000019d0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|000019e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019f0| 00 00 a9 7e db c5 00 00 | 00 00 00 00 01 7e 65 20 |...~....|.....~e |
|00001a00| 43 6f 6d 70 75 74 65 72 | 0d 09 09 09 41 70 70 6c |Computer|....Appl|
|00001a10| 65 4c 69 6e 6b 3a 20 4d | 41 4c 4c 45 52 31 0d 09 |eLink: M|ALLER1..|
|00001a20| 09 09 53 61 74 75 72 64 | 61 79 2c 20 41 75 67 75 |..Saturd|ay, Augu|
|00001a30| 73 74 20 32 32 2c 20 31 | 39 38 37 0d 0d 55 73 61 |st 22, 1|987..Usa|
|00001a40| 67 65 3a 09 20 46 69 6c | 65 4e 61 6d 65 28 5b 22 |ge:. Fil|eName(["|
|00001a50| 66 69 6c 65 54 79 70 65 | 22 5d 29 20 2d 2d 20 22 |fileType|"]) -- "|
|00001a60| 66 69 6c 65 54 79 70 65 | 22 20 69 73 20 6f 70 74 |fileType|" is opt|
|00001a70| 69 6f 6e 61 6c 0d 0d 45 | 78 61 6d 70 6c 65 73 3a |ional..E|xamples:|
|00001a80| 00 00 00 48 00 0a 43 6f | 75 72 69 65 72 00 00 00 |...H..Co|urier...|
|00001a90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001aa0| 00 00 00 00 00 00 00 06 | 00 02 00 29 00 03 01 53 |........|...)...S|
|00001ab0| 01 fd 00 c9 00 08 01 4e | 01 f8 9d 57 d2 8e 00 00 |.......N|...W....|
|00001ac0| 00 4b 00 00 00 ea 00 00 | 00 00 01 00 00 00 01 00 |.K......|........|
|00001ad0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 02 17 20 |...L...L|...2... |
|00001ae0| 06 40 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.@.....2|..MPSR..|
|00001af0| 00 0a 03 ed ff ff 00 00 | 00 00 00 03 18 50 00 00 |........|.....P..|
+--------+-------------------------+-------------------------+--------+--------+